/**
 * Created by Administrator on 17.8.7.
 */
"use strict";
console.log(JSON.stringify(phantom));

/**
 {
  "objectName": "",
  "defaultPageSettings": {
    "XSSAuditingEnabled": false,
    "javascriptCanCloseWindows": true,
    "javascriptCanOpenWindows": true,
    "javascriptEnabled": true,
    "loadImages": true,
    "localToRemoteUrlAccessEnabled": false,
    "userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.1.1 Safari/538.1",
    "webSecurityEnabled": true
  },
  "libraryPath": "D:/phpStudy/node/phantomjs_example/cli",
  "outputEncoding": "UTF-8",
  "version": {
    "major": 2,
    "minor": 1,
    "patch": 1
  },
  "page": {
    "objectName": "WebPage",
    "title": "",
    "frameTitle": "",
    "content": "<html><head></head><body></body></html>",
    "frameContent": "<html><head></head><body></body></html>",
    "url": "file://version.js",
    "frameUrl": "file://version.js/",
    "loading": false,
    "loadingProgress": 0,
    "canGoBack": false,
    "canGoForward": false,
    "plainText": "",
    "framePlainText": "",
    "libraryPath": "D:/phpStudy/node/phantomjs_example/cli",
    "offlineStoragePath": "C:/Users/Administrator/AppData/Local/Ofi Labs/PhantomJS",
    "offlineStorageQuota": 5242880,
    "viewportSize": {
      "height": 300,
      "width": 400
    },
    "paperSize": {},
    "clipRect": {
      "height": 0,
      "left": 0,
      "top": 0,
      "width": 0
    },
    "scrollPosition": {
      "left": 0,
      "top": 0
    },
    "navigationLocked": false,
    "customHeaders": {},
    "zoomFactor": 1,
    "cookies": [],
    "windowName": "",
    "pages": [],
    "pagesWindowName": [],
    "ownsPages": true,
    "framesName": [],
    "frameName": "",
    "framesCount": 0,
    "focusedFrameName": "",
    "cookieJar": {
      "objectName": "",
      "cookies": []
    }
  },
  "cookiesEnabled": true,
  "cookies": [],
  "webdriverMode": false,
  "remoteDebugPort": -1
}

 */
console.log('using PhantomJS version ' +
    phantom.version.major + '.' +
    phantom.version.minor + '.' +
    phantom.version.patch);
phantom.exit();